package com.itheima.tliassystem.service.impl;

import com.itheima.tliassystem.mapper.OrdersMapper;
import com.itheima.tliassystem.service.OrdersServive;
import entity.Orders;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;

@Service
public class OrdersServiveIml implements OrdersServive {
    @Autowired
    OrdersMapper ordersMapper;
    @Override
    public void add(Orders orders) {
        orders.setCancelTime(LocalDateTime.now());
        orders.setEstimatedDeliveryTime(LocalDateTime.now());
        orders.setDeliveryTime(LocalDateTime.now());
        ordersMapper.add();
    }
}
